﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Yun.IM.Response;
using Yun.Interface;

namespace Yun.IM.Request
{
    /// <summary>
    /// 获取用户token
    /// yun.im.rongcloud.user.token
    /// </summary>
    public class GetTokenRequest : ITopRequest<GetTokenResponse>
    {
        /// <summary>
        /// 用户名
        /// </summary>
        public string Name { get; set; }

        /// <summary>
        /// 用户头像
        /// </summary>
        public string PortraitUri { get; set; }

        /// <summary>
        /// 扩展名
        /// </summary>
        public string ExtendName { get; set; }

        public string GetApiName()
        {
            return "yun.im.rongcloud.user.token";
        }

        public IDictionary<string, string> GetParameters()
        {
            var parameters = new YunDictionary
            {
                {"name", Name},
                {"portraituri", PortraitUri},
                {"extendname", ExtendName}
            };

            return parameters;
        }

        public void Validate()
        {
             
        }


    }
}
